package com.otitan.la.forest.system.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.Date;

/**
 * 基础参数表
 *
 * @author jiacs
 * @email xxx
 * @date 2020-10-09 14:13:26
 */
@Data
@TableName("\"SYS_BASE_PARAM\"")
@ApiModel("基础参数表实体")
public class BaseParamEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键", required = false)
    @TableId("\"ID\"")
    private String id;

    /**
     * 参数名称
     */
    @ApiModelProperty(value = "参数名称", required = false)
    // @NotEmpty(message = "参数名称不能为空")
    // @Length(max = 36, message = "参数名称不能超过 36 个字符")
    @TableField("\"PARAM_NAME\"")
    private String paramName;

    /**
     * 参数值
     */
    @ApiModelProperty(value = "参数值", required = false)
    @NotEmpty(message = "参数值不能为空")
    @Length(max = 32, message = "参数值不能超过 32 个字符")
    @TableField("\"PARAM_VALUE\"")
    private String paramValue;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述", required = false)
    // @NotEmpty(message = "描述不能为空")
    // @Length(max = 128, message = "描述不能超过 128 个字符")
    @TableField("\"REMARK\"")
    private String remark;

    /**
     * 创建用户
     */
    @ApiModelProperty(value = "创建用户", required = false)
    @TableField(value = "\"CREATE_USER\"", fill = FieldFill.INSERT)
    private String createUser;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", required = false)
    @TableField(value = "\"CREATE_DATE\"", fill = FieldFill.INSERT)
    private Date createDate;

    /**
     * 编辑用户
     */
    @ApiModelProperty(value = "编辑用户", required = false)
    @TableField(value = "\"UPDATE_USER\"", fill = FieldFill.INSERT_UPDATE)
    private String updateUser;

    /**
     * 编辑时间
     */
    @ApiModelProperty(value = "编辑时间", required = false)
    @TableField(value = "\"UPDATE_DATE\"", fill = FieldFill.INSERT_UPDATE)
    private Date updateDate;
}
